<div class="bjui-pageContent">
    <form action="{:U(add)}" class="pageForm" id="useradd" data-toggle="validate">
        <input type="hidden" name="closeCurrent" value="true"  />
        <input type="hidden" name="tabid" value="{$Think.const.CONTROLLER_NAME}"  />
        <table class="table table-condensed table-hover">
            <tbody>
                <tr>
                    <td>
                        <label for="username" class="control-label x90">用户名:</label>
                        <input type="text" name="username" id="username" value="" data-rule="required" size="20">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="realname" class="control-label x90">真实姓名:</label>
                        <input type="text" name="realname" id="realname" value="" data-rule="required" size="20">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="password" class="control-label x90">密码:</label>
                        <input type="password" name="password" id="password" value="" data-rule="required" size="20">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="repassword" class="control-label x90">重复密码:</label>
                        <input type="password" name="repassword" id="repassword" value="" data-rule="required" size="20">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="mobile" class="control-label x90">手机号码:</label>
                        <input type="text" name="mobile" id="mobile" value="" data-rule="required" size="20">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="email" class="control-label x90">Email:</label>
                        <input type="text" name="email" id="email" value="" data-rule="required" size="20">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="deafult_hospital_id" class="control-label x90">显示医院</label>
                        <select name="deafult_hospital_id" id="deafult_hospital_id" data-toggle="selectpicker" data-width="200" >
                            <option value="" selected="" >请选择医院</option>
                            <volist name="hospital" id="vo">
                            <option value="{$vo.id}" >{$vo.name}</option>
                            </volist>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="hospital_id" class="control-label x90">所属医院</label>
                        <select name="hospital_id[]" id="hospital_id" data-toggle="selectpicker" data-width="300" multiple>
                            <volist name="hospital" id="vo">
                            <option value="{$vo.id}" >{$vo.name}</option>
                            </volist>
                        </select><br />(默认显示医院必须在所属医院内)
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="depart_id" class="control-label x90">所属部门:</label>
                        <select name="depart_id" id="depart_id" data-toggle="selectpicker">
                            <option value="" selected="" >请选择部门</option>
                            <volist name="depart" id="vo">
                            <option value="{$vo.id}" >{$vo.name}</option>
                            </volist>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="status" class="control-label x90">状态:</label>
                        <select name="status" id="status" data-toggle="selectpicker">
                            <option value="1">启用</option>
                            <option value="0">禁用</option>
                        </select>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close">关闭</button></li>
        <li><button type="submit" class="btn-default">保存</button></li>
    </ul>
</div>